home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / c_news / 08 / hgraph / h_graph.h < prev   
Text File  |  1988-05-14  |  1KB  |  35 lines

  1.      /*   DEFINES USED IN HERCULES FUNCTIONS   */
  2.  
  3. #define H_MEMLOC 0xB0000000 /* Hercules memory location           */
  4.      /* the formula to convert a pixel position to a Hercules
  5.         memory byte location                            */
  6. #define H_FORMULA (x1>>3)+((y1>>2)*90)+((y1 & 3)*8192)+h_apage*0x8000
  7. #define MODEPORT 0x3B8     /* the Hercules ports                  */
  8. #define ADDRPORT 0x3B4
  9. #define DATAPORT 0x3B5
  10. #define H_PSET   0         /* one of several put modes            */
  11.  
  12.    /*   EXTERNAL VARIABLES USED IN HERCULES FUNCTIONS   */
  13.  
  14. int    h_xpos=0;           /* the current graphics cursor position */
  15. int    h_ypos=0;
  16. int    h_xmin=0;           /* the limits of the current window     */
  17. int    h_xmax=719;
  18. int    h_ymin=0;
  19. int    h_ymax=347;
  20. int    h_vpage=0;          /* the current visible page             */
  21. int    h_apage=0;          /* the current active page              */
  22. int    h_pmode=H_PSET;     /* the current put mode                 */
  23. int    h_color=1;          /* the current drawing color            */
  24. int    h_vmode=7;          /* the current video mode               */
  25. int    h_start=0;          /* a backstop for text                  */
  26. char far *h_p;             /* a pointer to to Hercules memory      */
  27.  
  28.       /*     HERCULES PROTOTYPES  */
  29.  
  30. int     h_isherc(void);
  31. int     h_init(int mode);
  32. int     h_setvpage(int page);
  33. void    h_onoff(int on);
  34.  
  35.